package com.jianzh5.message;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * 邮箱验证类
 * @author jianzh5
 *
 */
public class MailAuthenticator extends Authenticator {
	private String username;
	private String password;
	
	public MailAuthenticator(){
	}
	
	public MailAuthenticator(String username, String password) {
		this.username = username;
		this.password = password;
	}
	
	protected PasswordAuthentication getPasswordAuthentication(){
		return new PasswordAuthentication(username, password);
	}
}
